package cn.jinjimi.domain.data.dto;


import java.util.List;

/**
 * Created by zhenhua on 16/7/21.
 */
public class CustomerUpdateDto {

    public Customer customer;

    public List<Label> labels;

    public static class Label {
        public String name;
        public Label(String name){
            this.name = name;
        }
    }

    public static class Contact {
        public int type;
        public String value;
        public Contact(int type, String value){
            this.type = type;
            this.value = value;
        }
    }

    public static class Customer {

        public long id;

        public String real_name;

        public int category;

        public String birthday;

        public int birthday_type;

        public int type;

        public int gender;

        public String label;

        public String email;

        public int id_card;

        public String id_code;

        public List<Contact> contact_infos;

        public String ssoId;

        public String province;

        public String city;

        public String address;

        public String remark;

    }

    public CustomerUpdateDto(long id,
                             String name,
                             String birthday,
                             int birthdayType,
                             List<Contact> contacts,
                             String ssoid,
                             int type,
                             int gender,
                             int category,
                             String label,
                             String email,
                             int id_card,
                             String id_code,
                             List<Label> labels,
                             String province,
                             String city,
                             String address,
                             String remark){

        customer = new Customer();
        customer.id = id;
        customer.real_name = name;
        customer.category = category;
        customer.birthday = birthday;
        customer.birthday_type = birthdayType;
        customer.type = type;
        customer.gender = gender;
        customer.label = label;
        customer.email = email;
        customer.id_card = id_card;
        customer.id_code = id_code;
        customer.contact_infos = contacts;
        customer.ssoId = ssoid;
        customer.province = province;
        customer.city = city;
        customer.address = address;
        customer.remark = remark;

        this.labels = labels;

    }

}
